package cn.xzc.method;

import cn.xzc.job.annotation.TimerMethod;
import cn.xzc.job.annotation.TimerMethods;

import java.util.concurrent.TimeUnit;

/**
 * @author xzc
 * @Classname ScanMethod
 * @Description 要扫描的方法
 * @Date 2024/2/18 21:21
 */
public class ScanMethod {
    @TimerMethod(cron = "0/10 * * * * ?",zone = "Shanghai/Asia")
    public static void scan(){
        System.out.println("-------------- scan ----------");
    }
    @TimerMethod(fixedRate = 11)
    public static void scanA(){
        System.out.println("-------------- scanA ----------");
    }
    @TimerMethod(fixedDelay = 1,timeUnit = TimeUnit.MINUTES)
    public static void scanB(){
        System.out.println("-------------- scanB ----------");
    }
    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(fixedRate = 1000),@TimerMethod(fixedDelay = 1000)})
    public static void scanC(){
        System.out.println("-------------- scanC ----------");
    }
    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(fixedRate = 1000)})
    public static void scanD(){
        System.out.println("-------------- scanD ----------");
    }
    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(fixedDelay = 1000)})
    public static void scanE(){
        System.out.println("-------------- scanE ----------");
    }
    @TimerMethods({@TimerMethod(fixedRate = 1000),@TimerMethod(fixedDelay = 1000)})
    public static void scanF(){
        System.out.println("-------------- scanF ----------");
    }
    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(fixedRate = 1000),@TimerMethod(fixedDelay = 1000)})
    public static void scanG(){
        System.out.println("-------------- scanG ----------");
    }


    @TimerMethod
    public void scan1(){
        System.out.println("-------------- error scan1 ----------");
    }
    @TimerMethod(cron = "0/10 * * * * ?",zone = "xsd")
    public void scan2(){
        System.out.println("-------------- error scan2 ----------");
    }
    @TimerMethod(cron = "-")
    public static void scan3(){
        System.out.println("-------------- error scan3 ----------");
    }

    @TimerMethod(cron = "0/10 * * * * ?",fixedDelay = 1000)
    public static void scan4(){
        System.out.println("-------------- error scan4 ----------");
    }

    @TimerMethod(cron = "0/10 * * * * ?",fixedRate = 1000)
    public static void scan5(){
        System.out.println("-------------- error scan5 ----------");
    }
    
    @TimerMethods({})
    @TimerMethod(cron = "0/10 * * * * ?")
    public static void scan6(){
        System.out.println("-------------- error scan6 ----------");
    }

    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(cron = "0/10 * * * * ?",zone = "xsd")})
    public static void scan7(){
        System.out.println("-------------- error scan7 ----------");
    }

    @TimerMethod(cron = "0/10 * * * * ?",fixedDelay = 1000,fixedRate = 1)
    public static void scan8(){
        System.out.println("-------------- error scan8 ----------");
    }

    @TimerMethod(fixedDelay = 1000,fixedRate = 1)
    public static void scan9(){
        System.out.println("-------------- error scan9 ----------");
    }

    @TimerMethod(cron = "0/10 * * * * ?",fixedDelay = 1000)
    public static void scan10(){
        System.out.println("-------------- error scan10 ----------");
    }

    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(fixedRate = 1000),@TimerMethod(fixedRate = 1000)})
    public static void scan11(){
        System.out.println("-------------- error scan11 ----------");
    }
    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(fixedDelay = 1000),@TimerMethod(fixedDelay = 1000)})
    public static void scan12(){
        System.out.println("-------------- error scan12 ----------");
    }
    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(fixedRate = 1000)})
    public static void scan13(){
        System.out.println("-------------- error scan13 ----------");
    }
    @TimerMethods({@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(cron = "0/10 * * * * ?"),@TimerMethod(cron = "0/10 * * * * ?")})
    public static void scan14(){
        System.out.println("-------------- error scan14 ----------");
    }
    @TimerMethods({@TimerMethod(fixedRate = 1000),@TimerMethod(fixedRate = 1000),@TimerMethod(fixedRate = 1000)})
    public static void scan15(){
        System.out.println("-------------- error scan15 ----------");
    }
    @TimerMethods({@TimerMethod(fixedDelay=11),@TimerMethod(fixedDelay = 1000),@TimerMethod(fixedDelay = 1000)})
    public static void scan16(){
        System.out.println("-------------- error scan16 ----------");
    }
}
